/**
 * Created by chang on 2017/2/9.
 */

const statService = require('../../service/dao/stat');
const _stat = module.exports

_stat.post_noticeDetailCount = async (req, res) => {
    statService.noticeDetailCount( req.body || {}).then((data) => {
        res.jsonWrap(data);
    }).catch((e) => {
        log4js.error(e);
        res.jsonWrap(null, 1, e.message);
    });
}


_stat.post_noticeErrorDetail = async (req, res) => {
    statService.noticeErrorDetail( req.body || {}).then((data) => {
        res.jsonWrap(data);
    }).catch((e) => {
        log4js.error(e);
        res.jsonWrap(null, 1, e.message);
    });
}
